package com.mindata.blockchain.core.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.mindata.blockchain.core.model.base.BaseEntity;

/**
 * @author wuweifeng wrote on 2017/10/25.
 */
@Entity
@Table(name = "message")
public class MessageEntity extends BaseEntity {
	/**
	 * 内容
	 */
	private String content;
	/**
	 * 目标用户
	 */
	private String target;
	/**
	 * 来源
	 */
	private String origin;
	/**
	 * 业务id
	 */
	private String messageId;

	@Override
	public String toString() {
		return "MessageEntity{" + "content='" + content + '\'' + ", target='" + target + '\'' + ", origin='" + origin
				+ '\'' + ", messageId='" + messageId + '\'' + '}';
	}

	public String getContent() {
		return content;
	}

	public void setContent(final String content) {
		this.content = content;
	}

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(final String messageId) {
		this.messageId = messageId;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(final String target) {
		this.target = target;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(final String origin) {
		this.origin = origin;
	}
}
